package cn.autumnorange.app.common.service;

import cn.autumnorange.app.common.core.IDTypeService;
import cn.autumnorange.app.common.entity.BaseTreeEntity;

import java.util.Collection;
import java.util.List;
import java.util.TreeSet;

public interface UpDownTreeEntityService<E extends BaseTreeEntity> extends IDTypeService<String> {
    TreeSet<E> upDownTreeEntity(List<E> treeEntityCollection);

    void setChildren(E upLevelBaseTreeEntity, Collection<E> treeEntityList);
}
